package com.jointsky.jointframe.controller;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HomeController {
	
	@RequestMapping("/index")
	public String index(HttpServletResponse response){
		Cookie cookie=new Cookie("JSESSIONID","507C4594C7C634C6FC99A34BA422A6C0C4DC4A831E886D0212B64823464B89D274B970509B8DA462FF7F29AD0EFF565C55F72E11D6A3C4FA88FF7ED566B93B8DE12C83C4AC98605EBD00422D9B5BB17C832DCFB6FBAFC82A1A66B3EA134F7D46B51F4F990CE5CFB2B9DD56FF75D6EBF1FAFFFF363F7C9D0431CD3871E806F32");
        cookie.setDomain("221.11.17.250");
        cookie.setPath("/");
		response.addCookie(cookie);
		return "redirect:http://221.11.17.250:9000";
	}

}
